package org.company.tool.bean;

import java.io.Serializable;

import org.company.tool.util.StringUtil;

@SuppressWarnings("serial")
public class Entity implements Serializable {
    
    private String tableName;
    
    private String javaName;
    
    private String packageName;
    
    public Entity(String tableName,String javaName,String packageName) {
        this.tableName = tableName;
        this.javaName = javaName;
        this.packageName = packageName;
    }
    
    public Entity(String tableName,String packageName) {
        this.tableName = tableName;
        this.javaName = StringUtil.nameTransfer(tableName.toLowerCase());
        this.packageName = packageName;
    }
    
    public Entity() {
        
    }
    
    /**
     * @return the tableName
     */
    public String getTableName() {
        return tableName;
    }

    /**
     * @param tableName the tableName to set
     */
    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    /**
     * @return the javaName
     */
    public String getJavaName() {
        return javaName;
    }

    /**
     * @param javaName the javaName to set
     */
    public void setJavaName(String javaName) {
        this.javaName = javaName;
    }

    /**
     * @return the packageName
     */
    public String getPackageName() {
        return packageName;
    }

    /**
     * @param packageName the packageName to set
     */
    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }
}
